home *** CD-ROM | disk | FTP | other *** search
/ Catch Me If You Can Press Kit / Catch Me if You Can Press Kit.iso / mac / Catch Me If You Can.dxr / button_54_roll right 10 (V2).ls < prev    next >
Encoding:
Text File  |  2002-11-21  |  490 b   |  19 lines

  1. property spriteNum, myStartLoc
  2. global mySprite
  3.  
  4. on exitFrame
  5.   mySprite = sprite(spriteNum).locH
  6.   if mySprite < 1100 then
  7.     sprite(spriteNum).locH = sprite(spriteNum).locH + 10
  8.     if rollover(2) then
  9.       sprite(spriteNum).locH = sprite(spriteNum).locH
  10.       repeat while inside(point(the mouseH, the mouseV), the rect of sprite 2)
  11.         sprite(spriteNum).locH = sprite(spriteNum).locH
  12.       end repeat
  13.     end if
  14.   else
  15.     sprite(spriteNum).locH = -90
  16.   end if
  17.   updateStage()
  18. end
  19.